<?php

ini_set('display_errors',1);
error_reporting(E_ALL | E_STRICT | E_NOTICE);
date_default_timezone_set('GMT');

define('DS', DIRECTORY_SEPARATOR);
define('ROOT_PATH', dirname(__file__));
define('ENGINE_PATH', ROOT_PATH . DS . 'engine');
define('LIB_PATH', ROOT_PATH . DS . 'library');
define('PACKAGE_PATH', ROOT_PATH . DS . 'package');
define('LOG_PATH', ROOT_PATH . DS . 'log');
define('TEMPLATE_PATH', ROOT_PATH . DS . 'template');
define('TEMPLATE', 'me');
define('BASE_URI', '/engine/');
define('BASE_URL', 'http://coba.local/engine/');

global $dbconfig;
$dbconfig =  array(
    'host'=>'localhost',
    'dbname'=>'coba_enzine',
    'username'=>'nora',
    'password'=>'nora123'
);

set_include_path(
  ENGINE_PATH . PATH_SEPARATOR
  .LIB_PATH . PATH_SEPARATOR
  .PACKAGE_PATH
);

function __autoload($class_name) {
  require_once str_replace('_', DS, $class_name) . '.php';
}